package cn.school.stu.evaluation.dao;

import cn.school.stu.evaluation.entity.StuEvaTask;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: lx
 * @date: 2023/5/25 10:46
 * @description:
 */
@Mapper
@Component
public interface StuEvaTaskDao extends BaseMapper<StuEvaTask> {

    int findStuEvaTaskCount(@Param("vo") StuEvaTask vo,
                            @Param("tenantId")String tenantId,
                            @Param("userId")String userId);

    List<StuEvaTask> findStuEvaTaskPageList(@Param("vo")StuEvaTask vo,
                                            @Param("startNum")int startNum,
                                            @Param("tenantId")String tenantId,
                                            @Param("userId")String userId);

    List<StuEvaTask> findStuEvaByPlanId(@Param("planId") Long planId);
}
